/**
 * 
 */
package com.sys.console.business;

import java.util.ArrayList;
import java.util.Set;

import com.sys.console.common.base.BaseMoreService;
import com.sys.console.pojo.Sys_User;
import com.sys.console.pojo.Sys_UserUpdatePassword;


/**
 * @author HS
 *
 */
public interface SysUserService extends BaseMoreService<Sys_User,Integer>{
		
	public abstract Sys_User findByName(String username) throws Exception;
	
	public abstract ArrayList<Sys_User> selectByList() throws Exception;
	
	public Set<String> getRoles(Integer uid);
	
	public Set<String> getAuthoritys(Integer roleid);
	
	public abstract int selectExistsByUsername(Sys_User record) throws Exception;
	
	public abstract int saveSysUser(Sys_User record) throws Exception;
	
	public abstract String selectUserNameByUid(Integer uid) throws Exception;
	
	public abstract int updatePassword(Sys_UserUpdatePassword record) throws Exception;
	
	public abstract int updateStatus(Sys_User record) throws Exception;
	
	public abstract int updateResetPass(Sys_UserUpdatePassword record) throws Exception;
	
	public abstract int updateLoginInfo(Sys_User record) throws Exception;
	
	public abstract Sys_User selectByAutoLogin(Sys_User record) throws Exception;
	
	
}
